Ext.define('StaffServer.view.retireStaff.RetireStaffSearchPanel', {
	extend : "Ext.form.Panel",
	alias : 'widget.retireStaffSearchPanel',
	title : '查询条件',
	
	frame : true,
	labelAlign : 'right',
	border: true,
	bodyStyle : 'padding: 5px 5px 5px 35px',
	buttonAlign : 'center',
	
	layout: {
        type: 'vbox',
        align: 'stretch'
    },
    
    
    bodyBorder: 0,
	

	initComponent: function() {
		this.items = [{
	        xtype: 'fieldcontainer',
	        layout: 'hbox',
	        fieldDefaults: {
	            labelWidth: 70
	        },
	        defaultType: 'textfield',
	        items: [{
	            name: 'search_LIKE_staffName',
	            labelWidth: 120,
	            fieldLabel: '姓名'
	        }, {
	            name: 'search_GTE_retireDate_DATE',
	            xtype: 'datefield', 
	            labelWidth: 120,
	            format: 'Y-m-d',
	            fieldLabel: '起始退休时间',
	            margin: '0 0 0 100'
	        },{
	            name: 'search_LTE_retireDate_DATE',
	            xtype: 'datefield', 
	            labelWidth: 120,
	            format: 'Y-m-d',
	            fieldLabel: '截止退休时间',
	            margin: '0 0 0 100'
	        }]
	    }, {
	        xtype: 'fieldcontainer',
	        layout: 'hbox',
	        fieldDefaults: {
	            labelWidth: 70
	        },
	        defaultType: 'textfield',
	        items: [{
	            name: 'search_LIKE_idCardNo',
	            labelWidth: 120,
	            fieldLabel: '身份证号'
	        }]
	    }];
		this.buttons = [ {
			action: 'search',
			text : '查询',
			iconCls : 'previewIcon',
			scope : this
		}, {
			action: 'reset',
			text : '重置',
			scope : this,
			iconCls : 'tbar_synchronizeIcon'
		} ];
		
		this.callParent(arguments);
		
	}
	
});